import axios from '@/libs/api.request'
import platform from '@/config/platform'
/**
 * @param { 检查站时段 }
 */
// 添加检查站时段

export const addStation = data => {
        return axios.request({
            url: platform.BOOKING_WWX + '/area-time-interval',
            method: 'post',
            data
        })
    }
    // 编辑检查站时段

export const editStation = data => {
    return axios.request({
        url: platform.BOOKING_WWX + '/area-time-interval',
        method: 'put',
        data
    })
}

// 检查站时段详情

export const getStationDetails = id => {
    return axios.request({
        url: platform.BOOKING_WWX + `/area-time-interval/${id}`,
        method: 'get',
    })
}